package ZiJieStream.FileInputStreamCopy;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        //D:\vscode\images
        FileInputStream fis = new FileInputStream("D:\\vscode\\images\\1.jpg");

        FileOutputStream fos = new FileOutputStream("day24\\copy.jpg");

        int b;
        while ((b = fis.read()) != -1) {
            fos.write(b);
        }
        fos.close();
        fis.close();
    }
}
